<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<s:form action="moduser">
用户名：
<s:if test="null == userid">
<input type="text" maxlength="50" value="<s:property value="user.userName"/>" name="user.userName" /><br/>
</s:if>
<s:else>
<span style="font: bold;"><s:property value="user.userName"/></span>
</s:else>
密码：<input type="password"  name="user.passwd" maxlength="16"/><br/>
确认密码：<input type="password"  name="passwordagain" maxlength="16"/><br/>
email：<input type="text" name="user.email" value="<s:property value="user.email"/>" maxlength="100"/><br/>
昵称：<input type="text" name="user.userNick" value="<s:property value="user.userNick"/>" maxlength="100"/><br/>
真实姓名：<input type="text" name="user.realName" value="<s:property value="user.realName"/>" maxlength="100"/>
<br/>
<s:if test="null == userid">
<input type="submit" value="新增用户"/>
</s:if>
<s:else>
<input type="submit" value="修改用户"/>
</s:else>
</s:form>
<s:actionerror/>
</body>
</html>